const defaultState = {
    visible: false,
    loading: false,
    model: {}

};
export default function updateFee(state = defaultState, action) {
    const {type, payload} = action;
    switch (type) {
        case 'GH_ORDER.SHOW_UPDATE_ORDER_FEE':
            return {...state, visible: true, model: {...payload}};
        case 'GH_ORDER.HIDE_UPDATE_ORDER_FEE':
            return {...state, visible: false, model: {}};
        default:
            return state;
    }
}

